/*
 * crc.h
 *
 *  Created on: 2011-1-4
 *      Author: xuhui
 */

#ifndef CRC_H_
#define CRC_H_
#ifdef __cplusplus
#include <stdint.h>
extern "C" {
#endif

uint16_t update_crc16(uint16_t crc_accum, const char *data_blk_ptr,
		    int data_blk_size);

uint8_t update_crc8(uint8_t crc_accum, const char *data_blk_ptr,
		    int data_blk_size);

#ifdef __cplusplus
}
#endif

#endif /* CRC_H_ */
